{% extends "FOSUserBundle::layout.html.twig" %}

{% block fos_user_content %}
<div class="toast">
    {{ 'registration.confirmed'|trans({'%username%': user.username}, 'FOSUserBundle') }}
    {% if app.session is not empty %}
        {% set targetUrl = app.session.get('_security.' ~ app.security.token.providerKey ~ '.target_path') %}
        {% if targetUrl is not empty %}<p><a href="{{ targetUrl }}">{{ 'registration.back'|trans({}, 'FOSUserBundle') }}</a></p>
	{% endif %}
    {% endif %}
    <img src="{{ asset('img/close.png') }}" witdh="16" height="16" onclick="this.parentNode.style.display='none'"/>
</div>
{% include "CadssTestBundle:Default:files.html.twig" %}
{% endblock fos_user_content %}